How do you find the singularity of a function